# _*_ coding:utf-8 _*_
# @author : Joyamon
# @time : 2023-1-12 15:12
# @file : get_email_and_report_params.py

from config.read_config import Config
from settings.settings import Route


class Email:
    """
    读取发送邮件数据
    """
    server = Config().read(Route().config(filename='router.ini'), 'email', 'server')
    port = Config().read(Route().config(filename='router.ini'), 'email', 'port')
    sender = Config().read(Route().config(filename='router.ini'), 'email', 'sender')
    password = Config().read(Route().config(filename='router.ini'), 'email', 'password')
    receiver = Config().read(Route().config(filename='router.ini'), 'email', 'receiver')
    subject = Config().read(Route().config(filename='router.ini'), 'email', 'subject')


class Report:
    """
    读取自定义配置测试报告数据
    """
    win_title = Config().read(Route().config(filename='router.ini'), 'report', 'win_title')
    report_title = Config().read(Route().config(filename='router.ini'), 'report', 'report_title')
    zip_name = Config().read(Route().config(filename='router.ini'), 'report', 'zip_name')
    template = Config().read(Route().config(filename='router.ini'), 'report', 'template')
